const Router = require("koa-router")
const app = new Router({ prefix: '/clipro' })
const { getproducts, seachproducts, lxproducts, getbyid } = require('../controller/products')
const { isslogin } = require('../middleware/index')
app.post('/getpro', isslogin, getproducts)
app.post('/seach', isslogin, seachproducts)
app.post('/lx', isslogin, lxproducts)
app.post('/getbyid', isslogin, getbyid)
module.exports = app